<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/16 0016
 * Time: 13:40
 */

namespace app\index\model;


use think\Model;

class Cosplay extends Model
{
    protected $table = 'cosplay';
    public function book(){
        return $this->hasOne('book','id','book_id')->where('state',1);
    }
}